import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Main from "@/components/Main"
import Work1 from '@/components/Work1'
import Work2 from '@/components/Work2'
import Work3 from '@/components/Work3'
import Login from '@/components/Login'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/",
      name: "Login",
      component: Login
    },
    {
      path: '/app',
      name: 'Main',
      component: Main,
      children: [
        {
          path: "/work1",
          name: "Work1",
          component: Work1
        },
        {
          path: "/work2",
          name: "Work2",
          component: Work2
        },
        {
          path: "/work3",
          name: "Work3",
          component: Work3
        }
      ]
    }
  ]
})
